//
//  webViewController.m
//  YOUDiary
//
//  Created by zhang on 2018/10/16.
//  Copyright © 2018年 郭兆伟. All rights reserved.
//

#import "webViewController.h"

@interface webViewController ()

@property (nonatomic, strong) UIWebView *webV;


@end

@implementation webViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"隐私政策权限";
    
    [self.view addSubview:self.webV];

}

- (UIWebView *)webV
{
    if (!_webV) {
        UIWebView * theView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)];
        NSString *path = [[NSBundle mainBundle] pathForResource:@"hjg_yinsi" ofType:@"html"];
        NSURL* url = [NSURL  fileURLWithPath:path];
        [theView loadRequest:[NSURLRequest requestWithURL:url]];
        _webV = theView;
    }
    return _webV;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
